package cn.swenty.backstage.framework.database.mybatis.enums;

public enum DATABASE {
	/**
	 * sqlserver
	 */
	SQLSERVER2008("sqlServer2008"),
	
	
	//mysql
	MYSQL("mysql"),
	
	/**
	 * oracle
	 */
	ORACLE("oracle");
	
	private String code;
	
	
	// 获取status
	public static DATABASE get(String code) {
		for (DATABASE c : DATABASE.values()) {
			if (c.getCode().equals(code)) {
				return c;
			}
		}
		return null;
	}
	
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	private DATABASE(String code){
		this.code = code;
	}
}
